package com.yuan.algorithms.practice201504;

import java.math.BigInteger;
import java.util.Scanner;

public class 大数A加B {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (sc.hasNext()) {
			int n = sc.nextInt();
			for (int i = 1; i <= n; i++) {
				String a = sc.next();
				String b = sc.next();
				BigInteger big = new BigInteger(a);
				big = big.add(new BigInteger(b));
				if (i != 1) {
					System.out.println();
				}
				System.out.println("Case " + i + ":");
				System.out.println(a + " + " + b + " = " + big.toString());
			}
		}

	}

}
